package com.create404.suishoupai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.create404.suishoupai.dto.EmployeeDto;
import com.create404.suishoupai.entity.Employee;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author create404
 * @since 2021-07-17
 */
public interface IEmployeeService extends IService<Employee> {

    void insert(Employee employee);

    /**
     * 检索所有用户(id,name)
     *
     * @return
     */
    List<Employee> selectAll();

    Employee findRolesByEmployeeId(String employeeId);

    void register(Employee employee);

    Map<String, List<EmployeeDto>> selectEDo();

    boolean updateByPhone(Employee employee);

}
